package com.zp.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import com.zp.common.satoken.utils.LoginHelper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;


/**
 * 字典与诊疗项目对照对象 dict_vs_clinic
 *
 * @author zhang peng
 * @ date 2024-03-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dict_vs_clinic")
public class DictVsClinic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 字典id
     */
    private String baseDictId;

    /**
     * 诊疗项目ID
     */
    private String clinicItemId;

    /**
     * 执行科室
     */
    private String implementDept;

    /**
     * 机构ID
     */
    private String orgId;

    /**
     * 门诊住院标识
     */
    private String outpOrInp;


    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;

    /**
     * 修改人、修改时间信息信息
     */
    public void updateInfo() {
        setUpdateBy(LoginHelper.getLoginUser().getNickName());
        setUpdateTime(new Date());
    }

}
